using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class LoadScene : MonoBehaviour
{
    public int loadSceneIndex;
    public bool autoLoad;
    void Start()
    {
        if (autoLoad)
        {
            Invoke("LoadNextScene", 2.6f);
        }
    }

    void Update()
    {

    }

    public void LoadNextScene()
    {
        SceneManager.LoadScene(loadSceneIndex);
    }
}
